package com.acme.domain.account;

import com.acme.exceptions.NoEnoughFundsException;

import java.math.BigDecimal;

public interface Account extends Comparable<Account> {
    int getId();

    void deposit(final BigDecimal amount) throws IllegalArgumentException;

    void withdraw(final BigDecimal amount) throws NoEnoughFundsException;

    AccountType getAccountType();

    BigDecimal getBalance();
}